import React from 'react';
import {inject} from 'mobx-react';

import HasAuth from './Ui/Activity/hashAuth';
import NoAuth from './Ui/Activity/noAuth';

import '../css/pages/Activity.css';


@inject ('store')
export default class ActivityList extends React.Component {
  render () {
    const {userInfo} = this.props.store.loginStatus;
    
    if (!userInfo.auth || !userInfo.auth.type) {
      return (<NoAuth />)
    }
    return (
      <HasAuth />
    );
  }
}
